package cn.batis.dao;

import cn.batis.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: DELL
 * @Since: 2024/10/30 10:22
 * @Description:
 */
public interface ManMapper {
    String getAll();
    List<Student> selectAll();
    List<Student> selectLikeOne(String name);
    List<Student> selectLike(Student student);
    List<Student> selectByPojoMap(Map<String,Object> userMap);
List<Student> selectByPojoParm(@Param("address") String address,
                           @Param("id") int id);
    int add(Student student);
    int update(@Param("id") Integer id,@Param("address") String address);
    int delete(@Param("id")Integer id);
}
